Skip to main content

Protocol structure

Basic structure of the Protocol

Request structure

-services【Required, use more "," separated】 -Service type: session, bio-data, affective, etc. -op【Required】 -Request operation: start, restore, process, finish, etc. -args -List parameters -kwargs -Dictionary parameters

Response structure

-code【required】 -0 The request is successful. See ErrCode documentation for others. -request【required】 -services【Required】 -op【Required】 -data -Request to return data packet -msg -Request return information

Protocol Notes

tip
  • All data transmission needs to be gzip compressed;
  • In the protocol document, the ones with "" are character strings, and the ones not added are variable names.